package com.group.eams.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group.eams.pojo.dto.*;
import com.group.eams.pojo.entity.AssetAllocate;
import com.group.eams.pojo.entity.AssetDistribute;
import com.group.eams.pojo.vo.AssetDistributeListVo;
import com.group.eams.pojo.vo.ClaimFixedDetailListVo;
import com.group.eams.pojo.vo.ClaimFixedListVo;

/**
* @author 恩哲欣
* @description 针对表【asset_distribute(资产派发表)】的数据库操作Service
* @createDate 2024-10-29 16:09:34
*/
public interface AssetDistributeService extends IService<AssetDistribute> {
    Page<AssetDistributeListVo> findAssetDistributeByWhere(AssetDistributeQueryDto assetDistributeQueryDto);
    // 查询固有资产
    Page<ClaimFixedListVo> findClaimFixedByWhere(FixedAssetQueryDto fixedAssetQueryDto);

    // 根据选择的id查询资产
    Page<ClaimFixedDetailListVo> addClaimFixedDetail(AssetPartDto assetPartDto);

    // 根据查询到的asset_id查询资产列表
    Page<ClaimFixedDetailListVo> findClaimFixedDetail(ApplyNumFixedAssetQueryDto applyNumFixedAssetQueryDto);

    // 根据申请单号删除
    int deleteByApplicationNum(BatchDeleteIdsDto batchDeleteIdsDto);
    // 根据申请单号和assetIds删除
    int updateByApplicationNum(BatchUpdateIdsDto<AssetDistribute> batchUpdateIdsDto);
    // 根据申请单号查询
    AssetDistribute findDistributeByNum(String applicationNum);
}
